package com.clear.honghefinance.biz.modules.system.member.converter;

import com.clear.honghefinance.biz.modules.system.member.domain.entity.Member;
import com.clear.honghefinance.biz.modules.system.member.domain.vo.CurrentInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MemberConverter {

    MemberConverter INSTANCE = Mappers.getMapper(MemberConverter.class);

    @Mappings(@Mapping(target = "avatar", source = "avatarUrl"))
    CurrentInfoVO convertMemberEntityToCurrentInfoVO(Member member);
}
